package di

import (
	"cooke-home/common/handle"
	"cooke-home/task-service/controller"
	"cooke-home/task-service/mapper"
	"cooke-home/task-service/service"
)

var (
	TaskController *controller.TaskController
)

func InitDI() {
	handle.InitGorm()

	taskMapper := mapper.NewTaskMapperImpl()

	taskService := service.NewTaskServiceImpl(taskMapper)

	TaskController = controller.NewTaskController(taskService)
}
